<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>

    let arr = [1,2,3,4,5,6,2,4,3]
    // console.log(Array.from(arr));
    // console.log(Array.isArray(arr));

    // arr.forEach(function(item,index,arr){
    //     console.log(index);
    //     console.log(item);
    //     console.log(arr);
    // })
    // let newArr = []
    // arr.forEach(function(item,index,a){

    //     if(newArr.indexOf(item) < 0 ){
    //         newArr.push(item)
    //     }
    // })

    let str = 'abcdefg'

    let a =  Array.from(str)
    // console.log(a);
    let = obj = {
        name:'小张',
        age:20
    }
    let obj2 = Object.values(obj)
    console.log(obj2);
</script>  